package com.jia.lidao.network.http.request.impl;

import com.jia.lidao.Constans;
import com.jia.lidao.network.http.request.AbstractRequest;
import com.jia.lidao.others.enity.Order;
import com.jia.lidao.others.enity.OrderInfor;
import com.lidroid.xutils.http.client.HttpRequest;

import org.apache.http.Header;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by jia on 17/12/18.
 */

public class OrderDetailRequest extends AbstractRequest {

    private int id;

    public OrderDetailRequest(int id){
        this.id=id;
    }

    @Override
    public String getUrl() {
        return Constans.BASEURL+"/orders/"+id;
    }

    @Override
    public void initRequestParams() {

    }

    @Override
    public List<Header> getHeaders() {
        return null;
    }

    @Override
    public Type getResultType() {
        return OrderInfor.class;
    }

    @Override
    public HttpRequest.HttpMethod getRequestMethod() {
        return HttpRequest.HttpMethod.GET;
    }
}
